import request from '@/utils/request'
/**
 * 获取规则列表
 */
export function getRuleListAPI(params) {
    return request({
        url: '/parking/rule/list',
        params
    })
}

/**
 * 添加计费规则
 */
export function addFeeRuleAPI(data) {
    return request({
        url: '/parking/rule',
        method: 'post',
        data
    })
}

/**
 * 删除计费规则
 */
export function delFeeRuleAPI(id) {
    return request({
        url: `/parking/rule/${id}`,
        method: 'delete'
    })
}

/**
 * 编辑计费规则
 */
export function editFeeRuleAPI(data) {
    return request({
        url: '/parking/rule',
        method: 'put',
        data
    })
}